<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Registration page</title>
        <link href="css/formregister.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>     
        <%
            request.getSession().removeAttribute("username");
            request.getSession().removeAttribute("password");
            session.invalidate();
            if (request.getAttribute("msg") != null) {
        %>
        <font color="green" > <%= request.getAttribute("msg")%> </font>
        <%
            }%>
        <div class="form"> 
            <div id="formDangKi"> 
                <form action="Register" method="get"> 
                    <h1> Registration </h1>  

                    <p><label for="Username">Username</label></p> 
                    <input id="username" name="username_st" value="" placeholder="User Name" required tabindex="1" type="text">  

                    <p><label for="password">Password</label></p> 
                    <input id="password" name="password_st" value="" placeholder="Pass Word" required tabindex="1" type="password">  

                    <p><label for="fullname">Full Name</label></p> 
                    <input id="fullname" name="full_name" placeholder="Full Name" required="required" tabindex="1" type="text">  

                    <p><label for="Address">Address</label></p> 
                    <input id="Address" name="address" placeholder="Address" tabindex="1" type="text">  

                    <p><label for="Email">Email</label></p> 
                    <input id="Email" name="email" placeholder="Eg: abc@gmail.com" tabindex="1" type="email">  

                    <p><label for="phone">Phone</label></p> 
                    <input id="phone" name="phone" placeholder="" tabindex="1" type="number"> 

                    <p><label for="gender">Gender</label></p> 
                    <select name="gender">
                        <option value="1">Nam</option>                           
                        <option value="0">Nữ</option>
                    </select>

                    <input type="hidden" name="roll" value="student">

                    <p class="signin button">  
                        <input type="submit" value="Regist"/> 
                    </p> 
                </form> 
            </div> 
        </div> 
    </body>
</html>
